<?php for ($i=0; $i<count($story['Task']);$i++){
           // var_dump($stories[$i]);

            ?>
            <div class="row-fluid"><div class="span12">
            <div class="bs-docs-example">
<!--                <ul class="nav nav-pills pull-right">
                   
                    <li>

                       
                        <a data-toggle="modal" href="#editStory<?php echo $stories[$i]['Story']['id'];?>" role="button"  ><i class="icon-edit"></i></a>
                        <?php 
                            echo $this->element('stories/editStory',array("story" => $stories[$i]['Story'],"pSprints" => $project['Project']['sprints'],"from"=>2));
                        
                        ?>
                    </li>
                     <li>
                        <a data-toggle="modal" href="#pokerStory<?php echo $stories[$i]['Story']['id'] ?>" role="button"  ><i class="icon-time"></i></a>
                        <?php
                            echo $this->element('stories/pokerStory',array("story" => $stories[$i],"from"=>2));

                        ?>
                    </li>
                    <li>
                    <?php echo $this->Form->postLink(
                                    '<i class="icon-trash"></i>', //le image
                                    '/stories/delete/'.$stories[$i]['Story']['id'].'/1', //,le url
                                    array('escape' => false,'confirm' => 'Are you sure?','class' => 'nav-pills'));

                                ?>   
                    </li>
                </ul>-->
                <p> 
                    <?php echo  '#'.($i+1).' '.$story['Task'][$i]['Task']['task'].'<br/>'; 
                    
                    if(!is_null($story['Task'][$i]['Task']['responsible_id']))
                        echo  "<small>Asignado a: ".$story['Task'][$i]['User']['username'].'</small>'; 
                    ?>
                    
                    
                
                </div>
            </div></div>
        <?php } ?>